package org.tongdao.yulong.basic_di.complexfield;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.tongdao.yulong.basic_di.complexfield.comple.User;

/**
 * @Description: TODO
 * @author: 殷玉龙
 * @date: 2020年09月28日 6:12 下午
 */
public class InjectComplexFieldXmlApplication {
  public static void main(String[] args) {
    ApplicationContext ctx = new ClassPathXmlApplicationContext("basic_di/inject-compilex.xml");
    User u = ctx.getBean(User.class);
    System.out.println(u);

  }
}
